import { createRouter, createWebHistory } from 'vue-router'
export default createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'Home',
      component: () => import("../pages/Home.vue")
    },
    {
      path: '/shops/:shopId',
      name: 'Shops',
      component: () => import("../pages/Shops.vue")
    },
    {
      path: "/checkout",
      name: "Checkout",
      component: () => import("../pages/Checkout.vue")
    },
    {
      path: "/:path(.*)",
      name: "NotFound",
      component: () => import("../pages/404.vue")
    }
  ]
})